package com.tuanzi.loan.workflow.repository.custom;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.tuanzi.loan.workflow.vo.TaskSearchRequest;
import com.tuanzi.loan.workflow.vo.TaskSearchResponse;

/**
 * @author Ray
 * @date 2018/01/12
 */
public interface RunningTaskRepositoryCustom {

	/**
	 * 获取个人待办任务列表
	 * 
	 * @param request
	 * @param pageable
	 * @return
	 */
	Page<TaskSearchResponse> listTodoTask(TaskSearchRequest request, Pageable pageable);

	/**
	 * 通过用户account查询未读的待办任务数目
	 *
	 * @param account
	 * @return
	 */
	Long countUnreadTodoTaskCount(String account);

}
